About the racing line. just like the others ai that they can't think. theres should be like a radar for it. like a hitbox. Like Wheres the grass. The wall. the grave. the cars.
When they see someone brake checking him. The AI First need to be sure his sorrundings. let me give you a example.
The AI after seeing the car infront of course it's gonna try to change his racing line and focus if hes closer
to the grass or wall. This already happends in LFS in the Straight's. (Except blackwood. for some reason they slow down on a overtake in a straight.
But what about in a corner or chicane?
The AI will go his normal racing line like always. but when a car tries to enter in his racing line. The AI will slow down or brake. and give a little bit of space. or just move around a little bit. so the other car. can go through. But what about defensive?. That's Depends on the corners. Example.
Blackwood Turn 1. if they are side by side. the AI will slow down to do a switch back or keep the racing line as side by side.
Kyoto Ring National Turn 2-3: He can slow in the inside line in turn 2. Keep the front wheel to rear wheel and do the attack heading at turn 3.